---
import Blank from "../layouts/Blank.astro";
import img404 from "../assets/img/404.png";
---

<Blank title="404">
  <div class="container flex flex-col justify-center items-center">
    <img src={img404.src} alt="404" />
    <div class="btn">
      <a href="/" data-astro-reload>回到首页</a>
    </div>
  </div>
</Blank>

<style>
  * {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "微软雅黑";
  }

  img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }

  .container {
    max-width: 90%;
    margin: 0 auto;
    padding-top: 80px;
  }

  .bg {
    display: block;
    max-width: 100%;
    margin: 0px auto;
  }

  .btn {
    width: 400px;
    margin: 0 auto;
    max-width: 100%;
    margin-top: 40px;
  }

  .btn a {
    text-decoration: none;
    border: 1px solid #5298ff;
    background: #5298ff;
    color: #fff;
    display: block;
    height: 46px;
    line-height: 44px;
    text-align: center;
    font-size: 16px;
    border-radius: 3px;
    overflow: hidden;
  }

  @media screen and (max-width: 500px) {
    .btn {
      width: 85%;
    }

    .btn a {
      width: 100%;
      font-size: 15px;
      height: 42px;
      line-height: 42px;
    }
  }
</style>
